package com.telit.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


/**
 * 行政区划DTO
 *
 * @author yuezhuang
 * @date 2022-09-05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "DistrictDTO", description = "行政区划DTO")
public class DistrictDTO implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "ID", required = true)
    private Long id;

    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @ApiModelProperty(value = "编码", required = true)
    private String code;

    @ApiModelProperty(value = "父编码", required = true)
    private String parentCode;

    @ApiModelProperty(value = "等级", required = true)
    private Integer rank;

    @ApiModelProperty(value = "子类集合", required = true)
    private List<DistrictDTO> children;

}
